<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="assetic.filter.typescript.class">Assetic\Filter\TypeScriptFilter</parameter>
        <parameter key="assetic.filter.typescript.bin">/usr/bin/tsc</parameter>
        <parameter key="assetic.filter.typescript.node">%assetic.node.bin%</parameter>
        <parameter key="assetic.filter.typescript.node_paths">%assetic.node.paths%</parameter>
        <parameter key="assetic.filter.typescript.timeout">null</parameter>
    </parameters>

    <services>
        <service id="assetic.filter.typescript" class="%assetic.filter.typescript.class%">
            <tag name="assetic.filter" alias="typescript" />
            <argument>%assetic.filter.typescript.bin%</argument>
            <argument>%assetic.filter.typescript.node%</argument>
            <call method="setTimeout"><argument>%assetic.filter.typescript.timeout%</argument></call>
            <call method="setNodePaths"><argument>%assetic.filter.typescript.node_paths%</argument></call>
        </service>
    </services>
</container>
